package chapter01

import java.util.concurrent.{Executors, TimeUnit}

object HellowWorld{
  def main(args: Array[String]): Unit = {
    val runnable = new Runnable {
      override def run(): Unit = {
        println("111");
      }

    }
    val service = Executors.newScheduledThreadPool(1)
    service.scheduleAtFixedRate(runnable,0,4,TimeUnit.SECONDS)

  }

}
